package pattern.iterator;

import java.util.ArrayList;
import java.util.Iterator;

public class Init
{
	public static void main(String[] args)
	{
		ArrayList<String> arrayListA = new ArrayList<String>();
		ArrayList<String> arrayListB = new ArrayList<String>();
		Menu menuA = new MenuA(arrayListA);
		Menu menuB = new MenuA(arrayListB);
		Iterator<String> iteratorA = menuA.createIterator();
		Iterator<String> iteratorB = menuB.createIterator();
		while (iteratorA.hasNext())
		{
			iteratorA.next();
		}
		while (iteratorB.hasNext())
		{
			iteratorB.next();
		}
		
	}
}
